package com.fqcar.fqdf.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.fqcar.fqdf.util.Constants;
import com.fqdf.framework.android.net.response.BaseReqBean;

/**
 * Created by lvsidong on 2017/10/21.
 *
 * 请求数据封装
 */

public class CarListReqBean implements Parcelable{

    public String cityCode = "-1";
    public String lat = Constants.BLANK;
    public String lng = Constants.BLANK;
    public String status = Constants.BLANK;
    public String onlineStatus = Constants.BLANK;
    public String chargeStatus = Constants.BLANK;
    public String power = Constants.BLANK;
    public String pageNum = Constants.BLANK;
    public String pageSize = "20";

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOnlineStatus() {
        return onlineStatus;
    }

    public void setOnlineStatus(String onlineStatus) {
        this.onlineStatus = onlineStatus;
    }

    public String getChargeStatus() {
        return chargeStatus;
    }

    public void setChargeStatus(String chargeStatus) {
        this.chargeStatus = chargeStatus;
    }

    public String getPower() {
        return power;
    }

    public void setPower(String power) {
        this.power = power;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getPageNum() {
        return pageNum;
    }

    public void setPageNum(String pageNum) {
        this.pageNum = pageNum;
    }

    public String getPageSize() {
        return pageSize;
    }

    public void setPageSize(String pageSize) {
        this.pageSize = pageSize;
    }

    public static Creator<CarListReqBean> getCREATOR() {
        return CREATOR;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }




    public CarListReqBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.cityCode);
        dest.writeString(this.lat);
        dest.writeString(this.lng);
        dest.writeString(this.status);
        dest.writeString(this.onlineStatus);
        dest.writeString(this.chargeStatus);
        dest.writeString(this.power);
        dest.writeString(this.pageNum);
        dest.writeString(this.pageSize);
    }

    protected CarListReqBean(Parcel in) {
        this.cityCode = in.readString();
        this.lat = in.readString();
        this.lng = in.readString();
        this.status = in.readString();
        this.onlineStatus = in.readString();
        this.chargeStatus = in.readString();
        this.power = in.readString();
        this.pageNum = in.readString();
        this.pageSize = in.readString();
    }

    public static final Creator<CarListReqBean> CREATOR = new Creator<CarListReqBean>() {
        @Override
        public CarListReqBean createFromParcel(Parcel source) {
            return new CarListReqBean(source);
        }

        @Override
        public CarListReqBean[] newArray(int size) {
            return new CarListReqBean[size];
        }
    };
}
